import BScroll from "better-scroll";


export const betterScrollHorizontal = (_this, wrapper, content, num, itemWidth) => {
    content.style.width = num * itemWidth + 'rem'
    _this.$nextTick(() => {
        _this.scroll = new BScroll(wrapper, {
            scrollY: false,
            scrollX: true,
            startX: 0,
            click: true
        })
    })
}